﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace NetworkCrashSimulator.Generic
{
    class Message
    {
        public static void ShowErrorMessage(string message)
        {
            MessageBox.Show("Error: \n" + message, "Network Crash Simulator", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        public static bool ConfirmAction(string action)
        {
            bool ret = false;

            if (MessageBox.Show(action, "Network Crash Simulator", MessageBoxButtons.YesNo, MessageBoxIcon.Question).Equals(DialogResult.Yes))
            {
                ret = true;
            }

            return ret;
        }

        public static void ShowInformationMessage(string message)
        {
            MessageBox.Show(message, "Network Crash Simulator", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }
}
